import request from '@/utils/request'

// 查询盘点单头列表
export function listHeader(query) {
  return request({
    url: '/api/inventory/check/header/page',
    method: 'get',
    params: query
  })
}

// 查询盘点单头详细
export function getHeader(inventoryCheckCode) {
  return request({
    url: '/api/inventory/check/header/' + inventoryCheckCode,
    method: 'get'
  })
}

// 新增盘点单头
export function addHeader(data) {
  return request({
    url: '/api/inventory/check/header/add',
    method: 'post',
    data: data
  })
}

// 修改盘点单头
export function updateHeader(data) {
  return request({
    url: '/api/inventory/check/header/update',
    method: 'post',
    data: data
  })
}

// 删除盘点单头
export function delHeader(inventoryCheckCode) {
  return request({
    url: '/api/inventory/check/header/delete/' + inventoryCheckCode,
    method: 'post'
  })
}
